/**
 * Created by kangdaye on 16/6/5.
 */
app.controller('distrVipDeductDialogCtr',["$scope","$rootScope","distrVipService", function($scope,$rootScope,distrVipService) {
    $scope.getData = {
        lv1 : 0,
        lv2 : 0
    };
    
    $scope.submit = function(){
        distrVipService.deduct($scope.getData,function(){
            $scope.closeThisDialog();  //dialog 关闭
        });
    };

    distrVipService.getDeductDivided(function(data){
        $scope.getData = data.data;
    });
}]);
